package cn.kgc.tangcco.tcbd1011.no13.base.dao;

import java.sql.SQLException;

import org.apache.commons.dbutils.QueryRunner;

import cn.kgc.tangcco.tcbd1011.no13.base.util.JDBCUtils;


public class BaseDao {
	protected static final QueryRunner qr = new QueryRunner(JDBCUtils.getDataSource());
	
	//新增，修改执行此方法
	protected int executeUpdate(QueryRunner queryRunner,String sql , Object ...objects) {
		try {
			return queryRunner.update(sql, objects);
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return 0;
	}
	
	
}
